package com.chen.blue.oa.status;

import com.chen.blue.dictionary.AuditDict;
import com.chen.blue.dictionary.SystemInnerDict;

import java.util.HashMap;
import java.util.Map;

/**
 * Created By CLT On 2024/6/17.
 */
@SuppressWarnings("all")
public class OaStatus {

    private final Map<String, Integer> auditRulesCache = new HashMap<>(5);

    public OaStatus() {
        init();
    }

    /**
     * 管理流程审核人和审核规则：personAudit和role的关联
     */
    public void init() {

        auditRulesCache.put(SystemInnerDict.ROLE_INNER_FACULTY_MANAGER_CODE, AuditDict.ROLE_INNER_FACULTY_MANAGER_CODE_ID);
        auditRulesCache.put(SystemInnerDict.ROLE_INNER_FACULTY_CHARGE_CODE, AuditDict.ROLE_INNER_FACULTY_CHARGE_CODE_ID);
        auditRulesCache.put(SystemInnerDict.ROLE_INNER_OFFICE_MANAGER_CODE, AuditDict.ROLE_INNER_OFFICE_MANAGER_CODE_ID);
        auditRulesCache.put(SystemInnerDict.ROLE_INNER_OFFICE_CHARGE_CODE, AuditDict.ROLE_INNER_OFFICE_CHARGE_CODE_ID);
        auditRulesCache.put(SystemInnerDict.ROLE_INNER_SCHOOL_BOSS_CODE, AuditDict.ROLE_INNER_SCHOOL_BOSS_CODE_ID);

    }

    public Map<String, Integer> getAuditRules() {
        return auditRulesCache;
    }

}
